<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
	String id = request.getParameter("id");//资源ID
%>
<html>
<head>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<!-- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page"> -->
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>
* {
	margin: 0;
	padding: 0;
}

html,body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
</style>


</head>
<script type="text/javascript">
  	/* swf在jsp页面加载完成后回调该方法。只调用一次 */
	sendCreationCompleteNotice = function (resId){
		getMyApp("topoViewSwf").renderNetwork(<%=id%>);
	};
	
	/* 渲染拓扑信息  */
	function renderNetwork(topoNode){
  		getMyApp("topoViewSwf").renderNetwork(topoNode.topoId);
  	}
  	function getMyApp(appName) {
        if (navigator.appName.indexOf ("Microsoft") !=-1) {
            return window[appName];
        } else {
            return document[appName];
        }
    }
  	
  </script>

<body style="background: #999;">
	<object id='topoViewSwf'
		classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
		codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=9,0,0,0'
		height='100%' width='100%'>
		<param name='src'
			value='${pageContext.request.contextPath}/resources/flash/TopoViewMain.swf' />
		<param name='flashVars' value="" />
		<param name="allowFullScreen" value="true" />
		<embed name='topoViewSwf'
			src='${pageContext.request.contextPath}/resources/flash/TopoViewMain.swf'
			pluginspage='http://www.adobe.com/go/getflashplayer' height='100%'
			allowFullScreen="true" 
			width='100%' flashVars='' />
	</object>
</body>
</html>
